<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2018/10/26 0026
 * Time: 上午 11:32
 */
use think\facade\Route;

Route::get('/','index/index');
Route::get('verify','/index/index/verify');
Route::get('item/:pid-[:id]', 'index/category/index')->pattern(['pid' => '\w+', 'id' => '\d+']);
Route::get('items/:pid-[:id]/:lesson_cat_id', 'index/category/index')->pattern(['pid' => '\w+', 'id' => '\d+' , 'lesson_cat_id' => '\d+\:\d+(-\d+\:\d+)*' ]);
Route::get('lesson/:id','category/lesson')->pattern(['id' => '\d+']);
Route::get('contact','contact/index');
Route::post('contact','contact/index');
Route::get('school','category/school');

Route::post('wxapply','index/index/apply');

Route::get('news/:pid','news/cate');
Route::get('newsdetails/:id','news/index');
Route::get('apply/:id','apply/index');
Route::post('apply2','index/apply/apply2');
Route::post('apply3','index/apply/apply3');
Route::post('apply4','index/apply/apply4');
Route::post('apply5','index/apply/apply5');
Route::post('apply6','index/apply/apply6');


//手机端路由
Route::get('m$','mobile/index/index');
Route::get('m/item/:pid-[:id]', 'mobile/category/index')->pattern(['pid' => '\w+', 'id' => '\d+']);
Route::get('m/newsdetails/:id','mobile/news/index');
Route::get('m/news/[:pid]','mobile/news/cate');
Route::get('m/lesson/:id','mobile/category/lesson')->pattern(['id' => '\d+']);
Route::get('m/apply/:id','mobile/apply/index');
Route::any('m/apply2','mobile/apply/apply2');
Route::any('m/apply3','mobile/apply/apply3');
Route::any('m/apply4','mobile/apply/apply4');

Route::get('m/contact','mobile/contact/index');
Route::get('m/school','mobile/category/school');






